<?php
class Basic_Das {
	/**
	 * _required
	 * 
	 * Check $data if it has the required fields.
	 */
	protected function _required($required, $data) {
		foreach ( $required as $field )
			if (! isset ( $data [$field] ))
				return false;
		return true;
	}
}